﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Controls_topImages : System.Web.UI.UserControl
{
    public LocalFunctions FUNC;
    protected int iGalleryID;
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable DTImages = Dal.ExecuteDBsp("RD_GetTop4Images");
        if (DTImages != null)
            if (DTImages.Rows.Count > 0)
            {
                iGalleryID=Convert.ToInt32(DTImages.Rows[0]["GalleryID"]);
                rptGalTop4Images.DataSource = DTImages;
                rptGalTop4Images.DataBind();
            }
        if(FUNC.LangID==2)
            tbl1.Attributes.Add("dir", "rtl");
    }
}
